package org.sixtythousand.joker;

import org.sixtythousand.joker.handler.Handler;

import java.util.List;
import java.util.concurrent.Executor;

/**
 * 负责创建连接相关对象实例
 * @author zhoulk
 * @date 2023/10/11 10:44
 * @desc
 */
public interface ConnectionFactory {

    Connection newConnection(JChannel channel, Handler handler, Executor executor);

    List<String> getProtocols();


}
